<template>
  <el-form-item label="按键高度">
    <el-input-number
      v-model="optionModel.slideButtonHeight"
      class="hide-spin-button"
      style="width: 100%"
      :min="0"
      :step="10"
      :max="200"
      :disabled="disabled"
      @change="onChange"
    ></el-input-number>
  </el-form-item>
</template>

<script>
export default {
  name: 'SlideButtonHeightEditor',
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object,
    disabled: {
      type: Boolean,
      default: false
    },
    parentWidget: Object
  },
  data() {
    return {}
  },
  computed: {},
  watch: {
    'optionModel.slideButtonHeight'(val) {
      this.optionModel.slideButtonHeight = val
    }
  },
  methods: {
    onChange(val) {
      this.optionModel.slideButtonHeight = val
    }
  }
}
</script>

<style scoped></style>
